home *** CD-ROM | disk | FTP | other *** search
- global mouseEnabled, mouseVal, mouseCycle
-
- on mouseDown
- set mouseEnabled to 1
- set mouseCycle to 0
- set mouseVal to [#hour: 0, #minute: 0, #second: 0]
- set x to the clickOn
- if (x = 1) or (x = 4) or (x = 7) then
- set val to 10 + (2 * (x = 1) * (the frameLabel = "alarm"))
- else
- set val to 1
- end if
- set val to val - (2 * val * (the mouseV > 20))
- if x < 3 then
- set the hour of mouseVal to val
- else
- if x < 6 then
- set the minute of mouseVal to val
- else
- set the second of mouseVal to val
- end if
- end if
- end
-